﻿using System.Collections.Generic;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using uTILLIty.Rave.Service;

namespace uTILLIty.Rave.Core
{
	[TestClass]
	public class DirCreatorServiceTest
	{
		public TestContext TestContext { get; set; }

		[TestMethod]
		public void ParseMergeVariablesEnvExpansion()
		{
			var target = new DirCreatorService(null);
			var list = new List<string>
				{
					"ComputerName=%COMPUTERNAME%",
				};
			var output = target.ParseMergeVariables(list);
			foreach (var entry in output)
				TestContext.WriteLine("{0}: '{1}'", entry.Key, entry.Value);
			Assert.AreNotEqual("%COMPUTERNAME%", output[0].Value);
		}
	}
}